<center>

	<form action="" method = "POST">
	
	Ancien mot de passe :
		<input type = 'password' name = 'lastpw'/>
		<?php if (isset($error['last'])) echo $error['last']; ?>
		</br></br>
		
	Nouveau mot de passe :
		<input type = 'password' name = 'newpw'/>
		<?php if(isset($error['pw'])) echo $error['pw']; ?>
		<?php if (isset($error['match'])) echo $error['match'] ?>
		</br></br>
		
	Confimer mot de passe :
		<input type = 'password' name = 'cpw'/>
		<?php if(isset($error['cpw'])) echo $error['cpw']; ?>
		</br></br>
		
	Modifier l'adresse mail :
		<input type = 'text' name = 'mail'/>
		<?php if(isset($error['mail'])) echo $error['mail']; if(isset($_POST['lastpw'])) echo $_POST['lastpw'];?>
		
		
		<p><input type = 'submit' name = 'change' value = 'Modifier le profil'/>	<input type = 'submit' name = 'cancel' value = 'Annuler'/></p>
	</form>

</center>